#pragma once

#include<string>
#include<stdio.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<sys/types.h>
#include<iostream>
#include<unistd.h>
#include<netdb.h>
#include<arpa/inet.h>
#include<netinet/in.h>
#include<assert.h>
#include<fcntl.h>
#include<errno.h>
#include<string.h>
#include<syslog.h>
#include<fstream>
#include<time.h>
#include<event.h>
#include<json/json.h>
#include<mysql/mysql.h>
#include<vector>
#include<queue>
#include<map>
#include<list>
#include<fstream>
using namespace std;

#define SER_PORT 6666

#define LOGIN_MESSAGE 1
#define JOIN_MESSAGE  2
#define SEND_ROOM     3

#define MAX_MESSAGE_NUM 3
#define MIN_MESSAGE_NUM 1

#define MAX_RBUF_SIZE 100
#define MAX_SBUF_SIZE 100

#define SUCCESS_BUF "Y"
#define FAILED_BUF "N"



